//
//  fristHeaderCollectionReusableView.m
//  HGY
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 顾成辉. All rights reserved.
//

#import "fristHeaderCollectionReusableView.h"

@implementation fristHeaderCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 70 * kHeight, 15 * kWidth, 20 * kHeight)];
    view.backgroundColor = [UIColor greenColor];
    [self addSubview:view];
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake((view.frame.size.width + 10) * kWidth, 70 * kHeight, 100 * kWidth, 20 * kHeight)];
    label.text = @"动手美食";
    label.font = [UIFont systemFontOfSize:15];
    [self addSubview:label];
#pragma mark -- 美食按钮
    self.headerImage = [[UIImageView alloc] initWithFrame:CGRectMake(10 * kWidth, label.bottom * kHeight, 55 * kWidth, 55 * kHeight)];
#pragma mark - button变圆
    self.headerImage.layer.cornerRadius = self.headerImage.frame.size.height / 2.0;
    [self addSubview:self.headerImage];
    self.headerImage.backgroundColor = [UIColor redColor];
    self.headerLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 * kWidth, self.headerImage.bottom + 10 *kHeight, 55 * kWidth, 20 * kHeight)];
   // self.headerLabel.text = @"美食";
    self.headerLabel.font = [UIFont systemFontOfSize:15];
    self.headerLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.headerLabel];
    
    // 乐趣
    UIView *leView = [[UIView alloc] initWithFrame:CGRectMake(10 * kWidth, self.headerLabel.bottom + 5 * kHeight, 15 * kWidth, 20 * kHeight)];
    leView.backgroundColor = [UIColor greenColor];
    [self addSubview:leView];
    UILabel *leLabel = [[UILabel alloc] initWithFrame:CGRectMake(leView.left + 20 *kWidth, self.headerLabel.bottom + 5 * kHeight, 100 * kWidth, 20 * kHeight)];
    leLabel.text = @"其他";
    leLabel.font = [UIFont systemFontOfSize:15];
    [self addSubview:leLabel];


}

@end
